package org.example.wu_and_dian.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.example.wu_and_dian.dto.response.AjaxResult;
import org.example.wu_and_dian.entity.Entity;

import java.util.List;

/**
* @author SS2613
* @description 针对表【entity(用于存储实体类的信息)】的数据库操作Mapper
* @createDate 2025-03-18 14:19:09
* @Entity .entity.Entity
*/
@Mapper
public interface EntityMapper extends BaseMapper<Entity> {
    List<Entity> getByDocumentId(String documentId);
    
    int deleteById(String documentId,String id);

    int createEntityInstance(Entity entity);

    int updateEntityInstancesByEntityId(String documentId, String entityId, Boolean isChecked);

    int updateEntityInstance(String instanceId, String documentId, Boolean isChecked);

    int deleteEntityInstancesByEntityId(String documentId, String instanceId);
}




